home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19980901-19981211
/
000145_news@newsmaster….columbia.edu _Tue Oct 13 19:47:02 1998.msg
< prev
next >
Wrap
Internet Message Format
|
1998-12-10
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id TAA23143
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 13 Oct 1998 19:47:01 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id TAA11402
for kermit.misc@watsun; Tue, 13 Oct 1998 19:47:01 -0400 (EDT)
Path: news.columbia.edu!panix!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!chippy.visi.com!news-out.visi.com!ptah.visi.com!visi.com!ekholm
From: Mike Ekholm <ekholm@nospam.visi.com>
Subject: Re: Kermit script
Newsgroups: comp.protocols.kermit.misc
References: <VqRU1.139$fE6.283188@ptah.visi.com>
Organization: someplace that you are not at
X-readme: why are you looking at my headers?
X-snack: Try the new FOO.BAR. Now low fat!
User-Agent: tin/pre-1.4-980514 (UNIX) (SunOS/5.6 (sun4u))
Lines: 33
Message-ID: <YCRU1.142$fE6.293106@ptah.visi.com>
Date: Tue, 13 Oct 1998 23:46:00 GMT
NNTP-Posting-Host: 209.98.98.8
X-Complaints-To: abuse@visi.com
X-Trace: ptah.visi.com 908322360 209.98.98.8 (Tue, 13 Oct 1998 18:46:00 CDT)
NNTP-Posting-Date: Tue, 13 Oct 1998 18:46:00 CDT
Xref: news.columbia.edu comp.protocols.kermit.misc:9336
On Tue, 13 Oct 1998 23:33:09 GMT, Mike Ekholm just had to say:
: Hello.
: I am attempting to write a simple script to sent the character "s" to the
: serial port, then recive the the output from the serial port. I have
: gotten the sending to work, but the recive part is not working. I have
: tried the "input" command with no luck. if I do the script interactivly,
: then do a "connect" I recive all the data I want, without doing anything
: further. but the connect command is not very fun to use when doing this
: non interactivly. What is the best way to have all the data recived from
: the serial port go to stdout then have the script/kermit terminate?
Hello,
I think I got it. here is what I did. basicly using the UPS prompts (=>):
#!/usr/local/bin/kermit
set line /dev/cuaa0
set speed 1200
set exit warning off
output s\13
output s\13
input 50 =>
input 50 =>
exit
-Mike
--
ekholm@nospam.visi.com | http://www.visi.com/~ekholm | quake:Nalez
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nospam is valid, filter provided by my isp http://www.visi.com
Check my all new home page at http://www.visi.com/~ekholm/
640K ought to be enough for anybody! - Bill Gates, 1981
Unix is user-friendly, not beginner-friendly.